﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace Cars
{
    public partial class CarsNotifyForm : NotifyForm
    {
        private CarInfo _car;
        public CarsNotifyForm()
        {
            InitializeComponent();
        }

        public CarInfo Car
        {
            get
            {
                return _car;
            }

            set
            {
                _car = value;
                linkLabel1.Text = _car.ToString();
            }
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            string url = string.Format("http://www.ksl.com/index.php?sid=&nid=443&tab=list/view&ad={0}", _car.AdId);

            System.Diagnostics.Process.Start(url);
        }
    }
}
